package com.ruoyi.fitsculpt.controller.app;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.fitsculpt.controller.EasyfitExercisePlanDetailsController;
import com.ruoyi.fitsculpt.domain.EasyfitExercisePlanDetails;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/app/easyfit/exerciseplandetails")
public class AppEasyfitExercisePlanDetailsController extends EasyfitExercisePlanDetailsController {

    @GetMapping("/list")
    public TableDataInfo list(EasyfitExercisePlanDetails easyfitExercisePlanDetails) {
        return super.list(easyfitExercisePlanDetails);
    }

    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return super.getInfo(id);
    }

    @PostMapping
    public AjaxResult add(@RequestBody EasyfitExercisePlanDetails easyfitExercisePlanDetails) {
        return super.add(easyfitExercisePlanDetails);
    }

    @PutMapping
    public AjaxResult edit(@RequestBody EasyfitExercisePlanDetails easyfitExercisePlanDetails) {
        return super.edit(easyfitExercisePlanDetails);
    }

    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return super.remove(ids);
    }
} 